#include"TcpServer.hpp"

void Usage(string arg) {
    cout << "Usage:" << arg << " you need a port!" << endl;
}
int main(int argc, char* argv[]) {

    if (argc != 2) {
        Usage(argv[0]);
        exit(1);
    }

    TcpServer svr(atoi(argv[1]));

    svr.InitTcpServer();

    svr.Loop();
    return 0;
}